package com.zp.base.service;


import com.zp.base.entity.bo.OperationDictBo;
import com.zp.base.entity.vo.OperationDictVo;
import com.zp.common.myBatis.core.page.PageQuery;
import com.zp.common.myBatis.core.page.TableDataInfo;

import java.util.Collection;
import java.util.List;

/**
 * 手术操作字典Service接口
 *
 * @author zhang peng
 * @date 2023-01-13
 */
public interface IOperationDictService {

    /**
     * 查询手术操作字典
     */
    OperationDictVo queryById (String operationDictId);

    /**
     * 查询手术操作字典列表(分页)
     */
    TableDataInfo<OperationDictVo> queryPageList (OperationDictBo bo, PageQuery pageQuery);

    /**
     * 查询手术操作字典列表(不分页)
     */
    List<OperationDictVo> queryList (OperationDictBo bo);

    /**
     * 修改手术操作字典
     */
    Boolean insertByBo (OperationDictBo bo);

    /**
     * 修改手术操作字典
     */
    Boolean updateByBo (OperationDictBo bo);

    /**
     * 校验并批量删除手术操作字典信息
     */
    Boolean deleteWithValidByIds (Collection<String> ids, Boolean isValid);

    /**
     * 手术项目自动补全
     *
     * @param bo
     * @return
     */
    List<OperationDictVo> getOperationAuto (OperationDictBo bo);
}
